package com.goalias.service;

import com.goalias.domain.dto.DownloadDto;
import com.goalias.domain.entity.File;
import com.baomidou.mybatisplus.extension.service.IService;
import com.goalias.resp.Result;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 文件表 服务类
 * </p>
 *
 * @author goalias
 * @since 2024-12-18
 */
public interface IFileService extends IService<File> {

    Result upload(MultipartFile file, Long categoryId);

    Result getUrl(String bucket, String fileName);

    Result delete(List<String> fileNames);
}
